package ch06;

class _21_StaticBlockTest {
	static int[] arr = new int[10];

	static {
		for (int i = 0; i < arr.length; i++)
			arr[i] = (int) (Math.random() * 10) + 1;
	}

	public static void main(String args[]) {
		for (int i = 0; i < arr.length; i++)
			System.out.println("arr[" + i + "] :" + arr[i]);
	}
}
/*
arr[0] :3
arr[1] :7
arr[2] :10
arr[3] :7
arr[4] :6
arr[5] :2
arr[6] :6
arr[7] :1
arr[8] :5
arr[9] :5
*/